export const PARAMS_PUBLICPLAN = [
  {
    type: "a-input",
    field: "caseName",
    title: "请输入方案名称",
    value: "",
    props: { placeholder: "请输入方案名称" }
  },
  {
    type: 'a-button',
    field: 'search',
    props: {
      type: 'primary',
      icon: "search"
    },
    children: ['搜索'],
    emit: ['click'],
    emitPrefix: 'btn-search',
  },
  {
    type: 'a-button',
    field: 'reset',
    props: {
      type: 'primary',
      icon: "setting"
    },
    children: ['重置'],
    emit: ['click'],
    emitPrefix: 'btn-reset',
  },
]
export const COLUMNS_PUBLICPLAN = [
  {
    title: '社保公积金方案编号',
    dataIndex: 'caseId',
  },
  {
    title: '社保公积金方案名称',
    dataIndex: 'caseName',
  },
  {
    title: "参保城市",
    dataIndex: "city",
  },
  {
    title: '操作',
    dataIndex: 'action',
    scopedSlots: { customRender: 'action' }
  },
]
export const COLUMNS_PUBLICPLANHANDLE = [
  {
    title: '类型',
    dataIndex: 'insureType',
    customRender: (text, row, index) => {
      if (row.insureType == '1') {
        return '养老保险'
      } else if (row.insureType == '2') {
        return '医疗保险'
      } else if (row.insureType == '3') {
        return '失业保险'
      } else if (row.insureType == '4') {
        return '工伤保险'
      } else if (row.insureType == '5') {
        return '生育保险'
      } else if (row.insureType == '6') {
        return '大病保险'
      } else if (row.insureType == '8') {
        return '残保金'
      } else if (row.insureType == '7') {
        return '公积金'
      }
      return ''
    },
  },
  {
    title: '可选基数范围',
    dataIndex: 'minBase',
    scopedSlots: { customRender: 'minBase' }
  },
  {
    title: "公司缴纳比例",
    dataIndex: "companyRatio",
    scopedSlots: { customRender: 'companyRatio' }
  },
  {
    title: "个人缴纳比例",
    dataIndex: "personalRatio",
    scopedSlots: { customRender: 'personalRatio' }
  },
  // {
  //   title: '公司缴纳',
  //   dataIndex: 'isCompanyPay',
  //   customRender: (text, row, index) => {
  //     if (row.insureType == 7) {
  //       return ''
  //     }
  //     if (row.isCompanyPay == 1) {
  //       return '是'
  //     } else if (row.isCompanyPay == 0) {
  //       return '否'
  //     }
  //     return ''
  //   },
  // },
  // {
  //   title: "个人缴纳",
  //   dataIndex: "isPersonalPay",
  //   customRender: (text, row, index) => {
  //     if (row.insureType == 7) {
  //       return ''
  //     }
  //     if (row.isPersonalPay == 1) {
  //       return '是'
  //     } else if (row.isPersonalPay == 0) {
  //       return '否'
  //     }
  //     return ''
  //   },
  // },
  {
    title: "并入方式",
    dataIndex: "mergeType",
    scopedSlots: { customRender: 'mergeType' }
  },
  // {
  //   title: "户籍影响",
  //   dataIndex: "censusRegisterEffect",
  //   scopedSlots: { customRender: 'censusRegisterEffect' }
  // },
]
// 参保人员管理
export const COLUMNS_JOINSTAFF = [
  {
    title: '姓名',
    dataIndex: 'insureName',
    fixed: 'left'
  },
  {
    title: "证件号码",
    dataIndex: "idCard",
  },
  {
    title: '参保状态',
    dataIndex: 'insureStatus',
    customRender: (text,record,index) => {
      if (text == 1) {
        return "未参保"
      } else if (text == 2) {
        return "已参保"
      }
      return ""
    }
  },
  {
    title: "参保城市",
    dataIndex: "city",
  },
  {
    title: '参保方案',
    dataIndex: 'caseName',
  },
  {
    title: '加入参保月份',
    dataIndex: 'insureDate',
  },
  {
    title: "在缴状态",
    dataIndex: "insurePayStatus",
    scopedSlots: { customRender: 'insurePayStatus' }
  },
  {
    title: "养老缴费基数",
    dataIndex: "pensionBase",
  },
  {
    title: '医疗缴费基数',
    dataIndex: 'medicalBase',
  },
  {
    title: "工伤缴费基数",
    dataIndex: "injuryBase",
  },
  {
    title: '失业缴费基数',
    dataIndex: 'loseJobBase',
  },
  {
    title: '大病缴费基数',
    dataIndex: 'bigIllBase',
  },
  {
    title: '残保金基数',
    dataIndex: 'disabilityBase',
  },
  {
    title: '生育保险基数',
    dataIndex: 'birthBase',
  },
  {
    title: '公积金缴费基数',
    dataIndex: 'fundsBase',
  },
  // {
  //   title: "个人社保缴费",
  //   dataIndex: "personalSocialTotalPay",
  // },
  // {
  //   title: "公司社保缴费",
  //   dataIndex: "companySocialTotalPay",
  // },
  // {
  //   title: "个人公积金缴费",
  //   dataIndex: "personalFundsTotalPay",
  // },
  // {
  //   title: "公司公积金缴费",
  //   dataIndex: "companyFundsTotalPay",
  // },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    width: 240,
    scopedSlots: { customRender: 'action' }
  },
]
// 社保缴交订单
export const COLUMNS_PAYORDER = [
  {
    title: '订单编号',
    dataIndex: 'insureOrderId',
  },
  {
    title: "参保月份",
    dataIndex: "insureMonth",
  },
  {
    title: '订单名称',
    dataIndex: 'orderName',
  },
  {
    title: "合作类型",
    dataIndex: "bizTypeName",
  },
  {
    title: "订单类型",
    dataIndex: "orderPayType",
    customRender: (text,record,index) => {
      if (text == 1) {
        return "社保"
      } else if (text == 2) {
        return "公积金"
      } else if (text == 3) {
        return "社保&公积金"
      }
      return ""
    }
  },
  {
    title: '社保缴纳总额',
    dataIndex: 'socialTotalPay',
  },
  {
    title: '社保缴纳人数',
    dataIndex: 'socialCount',
  },
  {
    title: '公积金缴纳总额',
    dataIndex: 'fundsTotalPay',
  },
  {
    title: "公积金缴纳人数",
    dataIndex: "fundsCount",
  },
  {
    title: '提交状态',
    dataIndex: 'orderStatusName',
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    scopedSlots: { customRender: 'action' }
  },
]
// 社保缴交订单详情
export const COLUMNS_PAYORDERDETAIL = [
  {
    title: '姓名',
    dataIndex: 'insureStaffName',
		fixed: "left",
  },
  {
    title: '身份证号',
    dataIndex: 'idCard',
		fixed: "left",
  },
  {
    title: '参保方案',
    dataIndex: 'caseName',
		fixed: "left",
  },
  {
    title: '参保城市',
    dataIndex: 'city',
		fixed: "left",
  },
  {
    title: '个人养老',
    dataIndex: 'pensionPersonalPay',
  },
  {
    title: "公司养老",
    dataIndex: "pensionCompanyPay",
  },
  {
    title: '个人医疗',
    dataIndex: 'medicalPersonalPay',
  },
  {
    title: '公司医疗',
    dataIndex: 'medicalCompanyPay',
  },
  {
    title: '个人失业',
    dataIndex: 'loseJobPersonalPay',
  },
  {
    title: "公司失业",
    dataIndex: "loseJobCompanyPay",
  },
  {
    title: '个人工伤',
    dataIndex: 'injuryPersonalPay',
  },
  {
    title: '公司工伤',
    dataIndex: 'injuryCompanyPay',
  },
  {
    title: '个人生育',
    dataIndex: 'birthPersonalPay'
  },
  {
    title: '公司生育',
    dataIndex: 'birthCompanyPay'
  },
  {
    title: '个人大病',
    dataIndex: 'bigIllPersonalPay',
  },
  {
    title: '公司大病',
    dataIndex: 'bigIllCompanyPay',
  },
  {
    title: '个人公积金',
    dataIndex: 'fundsPersonalPay',
  },
  {
    title: "企业公积金",
    dataIndex: "fundsCompanyPay",
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    scopedSlots: { customRender: 'action' }
  },
]
// 社保公积金订单
export const COLUMNS_ENSUREORDER = [
  {
    title: '账单编号',
    dataIndex: 'insureBillId',
  },
  {
    title: '订单编号',
    dataIndex: 'insureOrderId',
  },
  {
    title: '订单名称',
    dataIndex: 'orderName',
  },
  {
    title: '订单周期',
    dataIndex: 'insureMonth',
  },
  {
    title: '订单服务商',
    dataIndex: 'parkName',
  },
  {
    title: '订单人数',
    dataIndex: 'insureCount',
  },
  {
    title: '订单金额',
    dataIndex: 'billAmount',
  },
  {
    title: '订单类型',
    dataIndex: 'orderType',
    customRender: (text,record,index) => {
      if (text == 1) {
        return "正常订单"
      } else if (text == 2) {
        return "列账订单"
      } else if (text == 3) {
        return "补缴订单"
      }
      return ""
    }
  },
  {
    title: '订单类别',
    dataIndex: 'orderPayType',
    customRender: (text,record,index) => {
      if (text == 1) {
        return "社保"
      } else if (text == 2) {
        return "公积金"
      } else if (text == 3) {
        return "社保&公积金"
      }
      return ""
    }
  },
  {
    title: '服务费',
    dataIndex: 'billServiceFee',
  },
  {
    title: '创建时间',
    dataIndex: 'createdTime',
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    scopedSlots: { customRender: 'action' }
  },
]
// 社保退缴账单
export const COLUMNS_ENSUREORDERRETURN = [
  {
    title: '退缴月份',
    dataIndex: 'refundMonth',
  },
  {
    title: '姓名',
    dataIndex: 'insureName',
  },
  {
    title: '证件号码',
    dataIndex: 'idCard',
  },
  {
    title: '参保方案',
    dataIndex: 'caseName',
  },
  {
    title: '服务商',
    dataIndex: 'parkName'
  },
  {
    title: '参保城市',
    dataIndex: 'city',
  },
  {
    title: '退缴项目',
    dataIndex: 'feeTypeName',
  },
  {
    title: '退缴总金额',
    dataIndex: 'refundAmount',
  },
  {
    title: '结算状态',
    dataIndex: 'refundBillStatusName',
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    scopedSlots: { customRender: 'action' }
  },
]
// 商保管理列表
export const COLUMNS_BUSINESSORDER = [
  {
    title: '参保月份',
    dataIndex: 'insureDate',
  },
  {
    title: '商保订单名称',
    dataIndex: 'insureName',
  },
  {
    title: '服务商',
    dataIndex: 'parkName'
  },
  {
    title: '商保缴纳总额',
    dataIndex: 'insurePayAmount',
  },
  {
    title: '商保成本总额',
    dataIndex: 'insureCostAmount'
  },
  {
    title: '商保收益总额',
    dataIndex: 'insureIncomeAmount'
  },
  {
    title: '缴纳人数',
    dataIndex: 'insureCount',
  },
  {
    title: '结算状态',
    dataIndex: 'orderStatus',
    customRender: (text,record,index) => {
      if (text == 1) {
        return "待提交"
      } else if (text == 2) {
        return "待支付"
      } else if (text == 3) {
        return "已支付"
      } else if (text == 4) {
        return "已拒绝"
      }
      return ""
    }
  },
  {
    title: '操作',
    dataIndex: 'action',
    fixed: "right",
    scopedSlots: { customRender: 'action' }
  },
]
export const COLUMNS_BUSINESSORDERSTAFF = [
  {
    title: '姓名',
    dataIndex: 'insureName',
  },
  {
    title: '企业名称',
    dataIndex: 'enterpriseName',
  },
  {
    title: '性别',
    dataIndex: 'sex',
  },
  {
    title: '身份证',
    dataIndex: 'idCard',
  },
  {
    title: '职业',
    dataIndex: 'position',
  },
  {
    title: '职业类别',
    dataIndex: 'positionType',
  },
  {
    title: '险种',
    dataIndex: 'insureType',
  },
  {
    title: '保费',
    dataIndex: 'insureFee',
  },
  {
    title: '商保成本',
    dataIndex: 'incomeAmount'
  },
  {
    title: '商保收益',
    dataIndex: 'costFee'
  },
  {
    title: '保险方案',
    dataIndex: 'insureCase',
  },
  {
    title: '实际工作地',
    dataIndex: 'workAddress',
  }
]